<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition>

	<h:panelGrid id="pictureInputPanel" columns="1"
		rendered="#{pictureModel.current != null}" style="border:0px;width:100%">
		<ui:include src="pictureInfoInputPanel.xhtml"></ui:include>
		

		<h:panelGrid columns="4" style="border:0px;width:100%">
			<p:commandButton icon="add" value="New" ajax="true"
				update=":listForm,:detailForm,:headerForm">
				<f:setPropertyActionListener value="#{pictureModel.newObject}"
					target="#{pictureController.modelCurrent}" />
			</p:commandButton>
			<p:commandButton value="Save" icon="save" ajax="true"
				update=":listForm,:detailForm,:headerForm"
				actionListener="#{pictureController.saveCurrent}" />

			<p:commandButton value="Refresh" ajax="true"
				update=":listForm,:detailForm"
				actionListener="#{pictureController.refreshCurrent}" />
			<p:commandButton value="delete" icon="delete" ajax="true" update=":dialogForm"
				 oncomplete="deleteDlg.show()"  />
		</h:panelGrid>
	</h:panelGrid>
</ui:composition>

</html>